<!doctype html>

<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>iframerelaytransport.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>

<div class="clear"></div>

<h2><a href="local_closure_goog_net_xpc_iframerelaytransport.js.html">iframerelaytransport.js</a></h2>

<pre class="prettyprint lang-js">
<a name="line1"></a>// Copyright 2007 The Closure Library Authors. All Rights Reserved.
<a name="line2"></a>//
<a name="line3"></a>// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
<a name="line4"></a>// you may not use this file except in compliance with the License.
<a name="line5"></a>// You may obtain a copy of the License at
<a name="line6"></a>//
<a name="line7"></a>//      http://www.apache.org/licenses/LICENSE-2.0
<a name="line8"></a>//
<a name="line9"></a>// Unless required by applicable law or agreed to in writing, software
<a name="line10"></a>// distributed under the License is distributed on an &quot;AS-IS&quot; BASIS,
<a name="line11"></a>// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<a name="line12"></a>// See the License for the specific language governing permissions and
<a name="line13"></a>// limitations under the License.
<a name="line14"></a>
<a name="line15"></a>/**
<a name="line16"></a> * @fileoverview Contains the iframe relay tranport.
<a name="line17"></a> */
<a name="line18"></a>
<a name="line19"></a>
<a name="line20"></a>goog.provide(&#39;goog.net.xpc.IframeRelayTransport&#39;);
<a name="line21"></a>
<a name="line22"></a>goog.require(&#39;goog.dom&#39;);
<a name="line23"></a>goog.require(&#39;goog.events&#39;);
<a name="line24"></a>goog.require(&#39;goog.log&#39;);
<a name="line25"></a>goog.require(&#39;goog.log.Level&#39;);
<a name="line26"></a>goog.require(&#39;goog.net.xpc&#39;);
<a name="line27"></a>goog.require(&#39;goog.net.xpc.CfgFields&#39;);
<a name="line28"></a>goog.require(&#39;goog.net.xpc.Transport&#39;);
<a name="line29"></a>goog.require(&#39;goog.net.xpc.TransportTypes&#39;);
<a name="line30"></a>goog.require(&#39;goog.string&#39;);
<a name="line31"></a>goog.require(&#39;goog.userAgent&#39;);
<a name="line32"></a>
<a name="line33"></a>
<a name="line34"></a>
<a name="line35"></a>/**
<a name="line36"></a> * Iframe relay transport. Creates hidden iframes containing a document
<a name="line37"></a> * from the peer&#39;s origin. Data is transferred in the fragment identifier.
<a name="line38"></a> * Therefore the document loaded in the iframes can be served from the
<a name="line39"></a> * browser&#39;s cache.
<a name="line40"></a> *
<a name="line41"></a> * @param {goog.net.xpc.CrossPageChannel} channel The channel this
<a name="line42"></a> *     transport belongs to.
<a name="line43"></a> * @param {goog.dom.DomHelper=} opt_domHelper The dom helper to use for finding
<a name="line44"></a> *     the correct window.
<a name="line45"></a> * @constructor
<a name="line46"></a> * @extends {goog.net.xpc.Transport}
<a name="line47"></a> * @final
<a name="line48"></a> */
<a name="line49"></a>goog.net.xpc.IframeRelayTransport = function(channel, opt_domHelper) {
<a name="line50"></a>  goog.net.xpc.IframeRelayTransport.base(this, &#39;constructor&#39;, opt_domHelper);
<a name="line51"></a>
<a name="line52"></a>  /**
<a name="line53"></a>   * The channel this transport belongs to.
<a name="line54"></a>   * @type {goog.net.xpc.CrossPageChannel}
<a name="line55"></a>   * @private
<a name="line56"></a>   */
<a name="line57"></a>  this.channel_ = channel;
<a name="line58"></a>
<a name="line59"></a>  /**
<a name="line60"></a>   * The URI used to relay data to the peer.
<a name="line61"></a>   * @type {string}
<a name="line62"></a>   * @private
<a name="line63"></a>   */
<a name="line64"></a>  this.peerRelayUri_ =
<a name="line65"></a>      this.channel_.getConfig()[goog.net.xpc.CfgFields.PEER_RELAY_URI];
<a name="line66"></a>
<a name="line67"></a>  /**
<a name="line68"></a>   * The id of the iframe the peer page lives in.
<a name="line69"></a>   * @type {string}
<a name="line70"></a>   * @private
<a name="line71"></a>   */
<a name="line72"></a>  this.peerIframeId_ =
<a name="line73"></a>      this.channel_.getConfig()[goog.net.xpc.CfgFields.IFRAME_ID];
<a name="line74"></a>
<a name="line75"></a>  if (goog.userAgent.WEBKIT) {
<a name="line76"></a>    goog.net.xpc.IframeRelayTransport.startCleanupTimer_();
<a name="line77"></a>  }
<a name="line78"></a>};
<a name="line79"></a>goog.inherits(goog.net.xpc.IframeRelayTransport, goog.net.xpc.Transport);
<a name="line80"></a>
<a name="line81"></a>
<a name="line82"></a>if (goog.userAgent.WEBKIT) {
<a name="line83"></a>  /**
<a name="line84"></a>   * Array to keep references to the relay-iframes. Used only if
<a name="line85"></a>   * there is no way to detect when the iframes are loaded. In that
<a name="line86"></a>   * case the relay-iframes are removed after a timeout.
<a name="line87"></a>   * @type {Array.&lt;Object&gt;}
<a name="line88"></a>   * @private
<a name="line89"></a>   */
<a name="line90"></a>  goog.net.xpc.IframeRelayTransport.iframeRefs_ = [];
<a name="line91"></a>
<a name="line92"></a>
<a name="line93"></a>  /**
<a name="line94"></a>   * Interval at which iframes are destroyed.
<a name="line95"></a>   * @type {number}
<a name="line96"></a>   * @private
<a name="line97"></a>   */
<a name="line98"></a>  goog.net.xpc.IframeRelayTransport.CLEANUP_INTERVAL_ = 1000;
<a name="line99"></a>
<a name="line100"></a>
<a name="line101"></a>  /**
<a name="line102"></a>   * Time after which a relay-iframe is destroyed.
<a name="line103"></a>   * @type {number}
<a name="line104"></a>   * @private
<a name="line105"></a>   */
<a name="line106"></a>  goog.net.xpc.IframeRelayTransport.IFRAME_MAX_AGE_ = 3000;
<a name="line107"></a>
<a name="line108"></a>
<a name="line109"></a>  /**
<a name="line110"></a>   * The cleanup timer id.
<a name="line111"></a>   * @type {number}
<a name="line112"></a>   * @private
<a name="line113"></a>   */
<a name="line114"></a>  goog.net.xpc.IframeRelayTransport.cleanupTimer_ = 0;
<a name="line115"></a>
<a name="line116"></a>
<a name="line117"></a>  /**
<a name="line118"></a>   * Starts the cleanup timer.
<a name="line119"></a>   * @private
<a name="line120"></a>   */
<a name="line121"></a>  goog.net.xpc.IframeRelayTransport.startCleanupTimer_ = function() {
<a name="line122"></a>    if (!goog.net.xpc.IframeRelayTransport.cleanupTimer_) {
<a name="line123"></a>      goog.net.xpc.IframeRelayTransport.cleanupTimer_ = window.setTimeout(
<a name="line124"></a>          function() { goog.net.xpc.IframeRelayTransport.cleanup_(); },
<a name="line125"></a>          goog.net.xpc.IframeRelayTransport.CLEANUP_INTERVAL_);
<a name="line126"></a>    }
<a name="line127"></a>  };
<a name="line128"></a>
<a name="line129"></a>
<a name="line130"></a>  /**
<a name="line131"></a>   * Remove all relay-iframes which are older than the maximal age.
<a name="line132"></a>   * @param {number=} opt_maxAge The maximal age in milliseconds.
<a name="line133"></a>   * @private
<a name="line134"></a>   */
<a name="line135"></a>  goog.net.xpc.IframeRelayTransport.cleanup_ = function(opt_maxAge) {
<a name="line136"></a>    var now = goog.now();
<a name="line137"></a>    var maxAge =
<a name="line138"></a>        opt_maxAge || goog.net.xpc.IframeRelayTransport.IFRAME_MAX_AGE_;
<a name="line139"></a>
<a name="line140"></a>    while (goog.net.xpc.IframeRelayTransport.iframeRefs_.length &amp;&amp;
<a name="line141"></a>           now - goog.net.xpc.IframeRelayTransport.iframeRefs_[0].timestamp &gt;=
<a name="line142"></a>           maxAge) {
<a name="line143"></a>      var ifr = goog.net.xpc.IframeRelayTransport.iframeRefs_.
<a name="line144"></a>          shift().iframeElement;
<a name="line145"></a>      goog.dom.removeNode(ifr);
<a name="line146"></a>      goog.log.log(goog.net.xpc.logger, goog.log.Level.FINEST,
<a name="line147"></a>          &#39;iframe removed&#39;);
<a name="line148"></a>    }
<a name="line149"></a>
<a name="line150"></a>    goog.net.xpc.IframeRelayTransport.cleanupTimer_ = window.setTimeout(
<a name="line151"></a>        goog.net.xpc.IframeRelayTransport.cleanupCb_,
<a name="line152"></a>        goog.net.xpc.IframeRelayTransport.CLEANUP_INTERVAL_);
<a name="line153"></a>  };
<a name="line154"></a>
<a name="line155"></a>
<a name="line156"></a>  /**
<a name="line157"></a>   * Function which wraps cleanup_().
<a name="line158"></a>   * @private
<a name="line159"></a>   */
<a name="line160"></a>  goog.net.xpc.IframeRelayTransport.cleanupCb_ = function() {
<a name="line161"></a>    goog.net.xpc.IframeRelayTransport.cleanup_();
<a name="line162"></a>  };
<a name="line163"></a>}
<a name="line164"></a>
<a name="line165"></a>
<a name="line166"></a>/**
<a name="line167"></a> * Maximum sendable size of a payload via a single iframe in IE.
<a name="line168"></a> * @type {number}
<a name="line169"></a> * @private
<a name="line170"></a> */
<a name="line171"></a>goog.net.xpc.IframeRelayTransport.IE_PAYLOAD_MAX_SIZE_ = 1800;
<a name="line172"></a>
<a name="line173"></a>
<a name="line174"></a>/**
<a name="line175"></a> * @typedef {{fragments: !Array.&lt;string&gt;, received: number, expected: number}}
<a name="line176"></a> */
<a name="line177"></a>goog.net.xpc.IframeRelayTransport.FragmentInfo;
<a name="line178"></a>
<a name="line179"></a>
<a name="line180"></a>/**
<a name="line181"></a> * Used to track incoming payload fragments. The implementation can process
<a name="line182"></a> * incoming fragments from several channels at a time, even if data is
<a name="line183"></a> * out-of-order or interleaved.
<a name="line184"></a> *
<a name="line185"></a> * @type {!Object.&lt;string, !goog.net.xpc.IframeRelayTransport.FragmentInfo&gt;}
<a name="line186"></a> * @private
<a name="line187"></a> */
<a name="line188"></a>goog.net.xpc.IframeRelayTransport.fragmentMap_ = {};
<a name="line189"></a>
<a name="line190"></a>
<a name="line191"></a>/**
<a name="line192"></a> * The transport type.
<a name="line193"></a> * @type {number}
<a name="line194"></a> * @override
<a name="line195"></a> */
<a name="line196"></a>goog.net.xpc.IframeRelayTransport.prototype.transportType =
<a name="line197"></a>    goog.net.xpc.TransportTypes.IFRAME_RELAY;
<a name="line198"></a>
<a name="line199"></a>
<a name="line200"></a>/**
<a name="line201"></a> * Connects this transport.
<a name="line202"></a> * @override
<a name="line203"></a> */
<a name="line204"></a>goog.net.xpc.IframeRelayTransport.prototype.connect = function() {
<a name="line205"></a>  if (!this.getWindow()[&#39;xpcRelay&#39;]) {
<a name="line206"></a>    this.getWindow()[&#39;xpcRelay&#39;] =
<a name="line207"></a>        goog.net.xpc.IframeRelayTransport.receiveMessage_;
<a name="line208"></a>  }
<a name="line209"></a>
<a name="line210"></a>  this.send(goog.net.xpc.TRANSPORT_SERVICE_, goog.net.xpc.SETUP);
<a name="line211"></a>};
<a name="line212"></a>
<a name="line213"></a>
<a name="line214"></a>/**
<a name="line215"></a> * Processes an incoming message.
<a name="line216"></a> *
<a name="line217"></a> * @param {string} channelName The name of the channel.
<a name="line218"></a> * @param {string} frame The raw frame content.
<a name="line219"></a> * @private
<a name="line220"></a> */
<a name="line221"></a>goog.net.xpc.IframeRelayTransport.receiveMessage_ =
<a name="line222"></a>    function(channelName, frame) {
<a name="line223"></a>  var pos = frame.indexOf(&#39;:&#39;);
<a name="line224"></a>  var header = frame.substr(0, pos);
<a name="line225"></a>  var payload = frame.substr(pos + 1);
<a name="line226"></a>
<a name="line227"></a>  if (!goog.userAgent.IE || (pos = header.indexOf(&#39;|&#39;)) == -1) {
<a name="line228"></a>    // First, the easy case.
<a name="line229"></a>    var service = header;
<a name="line230"></a>  } else {
<a name="line231"></a>    // There was a fragment id in the header, so this is a message
<a name="line232"></a>    // fragment, not a whole message.
<a name="line233"></a>    var service = header.substr(0, pos);
<a name="line234"></a>    var fragmentIdStr = header.substr(pos + 1);
<a name="line235"></a>
<a name="line236"></a>    // Separate the message id string and the fragment number. Note that
<a name="line237"></a>    // there may be a single leading + in the argument to parseInt, but
<a name="line238"></a>    // this is harmless.
<a name="line239"></a>    pos = fragmentIdStr.indexOf(&#39;+&#39;);
<a name="line240"></a>    var messageIdStr = fragmentIdStr.substr(0, pos);
<a name="line241"></a>    var fragmentNum = parseInt(fragmentIdStr.substr(pos + 1), 10);
<a name="line242"></a>    var fragmentInfo =
<a name="line243"></a>        goog.net.xpc.IframeRelayTransport.fragmentMap_[messageIdStr];
<a name="line244"></a>    if (!fragmentInfo) {
<a name="line245"></a>      fragmentInfo =
<a name="line246"></a>          goog.net.xpc.IframeRelayTransport.fragmentMap_[messageIdStr] =
<a name="line247"></a>          {fragments: [], received: 0, expected: 0};
<a name="line248"></a>    }
<a name="line249"></a>
<a name="line250"></a>    if (goog.string.contains(fragmentIdStr, &#39;++&#39;)) {
<a name="line251"></a>      fragmentInfo.expected = fragmentNum + 1;
<a name="line252"></a>    }
<a name="line253"></a>    fragmentInfo.fragments[fragmentNum] = payload;
<a name="line254"></a>    fragmentInfo.received++;
<a name="line255"></a>
<a name="line256"></a>    if (fragmentInfo.received != fragmentInfo.expected) {
<a name="line257"></a>      return;
<a name="line258"></a>    }
<a name="line259"></a>
<a name="line260"></a>    // We&#39;ve received all outstanding fragments; combine what we&#39;ve received
<a name="line261"></a>    // into payload and fall out to the call to xpcDeliver.
<a name="line262"></a>    payload = fragmentInfo.fragments.join(&#39;&#39;);
<a name="line263"></a>    delete goog.net.xpc.IframeRelayTransport.fragmentMap_[messageIdStr];
<a name="line264"></a>  }
<a name="line265"></a>
<a name="line266"></a>  goog.net.xpc.channels[channelName].
<a name="line267"></a>      xpcDeliver(service, decodeURIComponent(payload));
<a name="line268"></a>};
<a name="line269"></a>
<a name="line270"></a>
<a name="line271"></a>/**
<a name="line272"></a> * Handles transport service messages (internal signalling).
<a name="line273"></a> * @param {string} payload The message content.
<a name="line274"></a> * @override
<a name="line275"></a> */
<a name="line276"></a>goog.net.xpc.IframeRelayTransport.prototype.transportServiceHandler =
<a name="line277"></a>    function(payload) {
<a name="line278"></a>  if (payload == goog.net.xpc.SETUP) {
<a name="line279"></a>    // TODO(user) Safari swallows the SETUP_ACK from the iframe to the
<a name="line280"></a>    // container after hitting reload.
<a name="line281"></a>    this.send(goog.net.xpc.TRANSPORT_SERVICE_, goog.net.xpc.SETUP_ACK_);
<a name="line282"></a>    this.channel_.notifyConnected();
<a name="line283"></a>  }
<a name="line284"></a>  else if (payload == goog.net.xpc.SETUP_ACK_) {
<a name="line285"></a>    this.channel_.notifyConnected();
<a name="line286"></a>  }
<a name="line287"></a>};
<a name="line288"></a>
<a name="line289"></a>
<a name="line290"></a>/**
<a name="line291"></a> * Sends a message.
<a name="line292"></a> *
<a name="line293"></a> * @param {string} service Name of service this the message has to be delivered.
<a name="line294"></a> * @param {string} payload The message content.
<a name="line295"></a> * @override
<a name="line296"></a> */
<a name="line297"></a>goog.net.xpc.IframeRelayTransport.prototype.send = function(service, payload) {
<a name="line298"></a>  // If we&#39;re on IE and the post-encoding payload is large, split it
<a name="line299"></a>  // into multiple payloads and send each one separately. Otherwise,
<a name="line300"></a>  // just send the whole thing.
<a name="line301"></a>  var encodedPayload = encodeURIComponent(payload);
<a name="line302"></a>  var encodedLen = encodedPayload.length;
<a name="line303"></a>  var maxSize = goog.net.xpc.IframeRelayTransport.IE_PAYLOAD_MAX_SIZE_;
<a name="line304"></a>
<a name="line305"></a>  if (goog.userAgent.IE &amp;&amp; encodedLen &gt; maxSize) {
<a name="line306"></a>    // A probabilistically-unique string used to link together all fragments
<a name="line307"></a>    // in this message.
<a name="line308"></a>    var messageIdStr = goog.string.getRandomString();
<a name="line309"></a>
<a name="line310"></a>    for (var startIndex = 0, fragmentNum = 0; startIndex &lt; encodedLen;
<a name="line311"></a>         fragmentNum++) {
<a name="line312"></a>      var payloadFragment = encodedPayload.substr(startIndex, maxSize);
<a name="line313"></a>      startIndex += maxSize;
<a name="line314"></a>      var fragmentIdStr =
<a name="line315"></a>          messageIdStr + (startIndex &gt;= encodedLen ? &#39;++&#39; : &#39;+&#39;) + fragmentNum;
<a name="line316"></a>      this.send_(service, payloadFragment, fragmentIdStr);
<a name="line317"></a>    }
<a name="line318"></a>  } else {
<a name="line319"></a>    this.send_(service, encodedPayload);
<a name="line320"></a>  }
<a name="line321"></a>};
<a name="line322"></a>
<a name="line323"></a>
<a name="line324"></a>/**
<a name="line325"></a> * Sends an encoded message or message fragment.
<a name="line326"></a> * @param {string} service Name of service this the message has to be delivered.
<a name="line327"></a> * @param {string} encodedPayload The message content, URI encoded.
<a name="line328"></a> * @param {string=} opt_fragmentIdStr If sending a fragment, a string that
<a name="line329"></a> *     identifies the fragment.
<a name="line330"></a> * @private
<a name="line331"></a> */
<a name="line332"></a>goog.net.xpc.IframeRelayTransport.prototype.send_ =
<a name="line333"></a>    function(service, encodedPayload, opt_fragmentIdStr) {
<a name="line334"></a>  // IE requires that we create the onload attribute inline, otherwise the
<a name="line335"></a>  // handler is not triggered
<a name="line336"></a>  if (goog.userAgent.IE) {
<a name="line337"></a>    var div = this.getWindow().document.createElement(&#39;div&#39;);
<a name="line338"></a>    div.innerHTML = &#39;&lt;iframe onload=&quot;this.xpcOnload()&quot;&gt;&lt;/iframe&gt;&#39;;
<a name="line339"></a>    var ifr = div.childNodes[0];
<a name="line340"></a>    div = null;
<a name="line341"></a>    ifr[&#39;xpcOnload&#39;] = goog.net.xpc.IframeRelayTransport.iframeLoadHandler_;
<a name="line342"></a>  } else {
<a name="line343"></a>    var ifr = this.getWindow().document.createElement(&#39;iframe&#39;);
<a name="line344"></a>
<a name="line345"></a>    if (goog.userAgent.WEBKIT) {
<a name="line346"></a>      // safari doesn&#39;t fire load-events on iframes.
<a name="line347"></a>      // keep a reference and remove after a timeout.
<a name="line348"></a>      goog.net.xpc.IframeRelayTransport.iframeRefs_.push({
<a name="line349"></a>        timestamp: goog.now(),
<a name="line350"></a>        iframeElement: ifr
<a name="line351"></a>      });
<a name="line352"></a>    } else {
<a name="line353"></a>      goog.events.listen(ifr, &#39;load&#39;,
<a name="line354"></a>                         goog.net.xpc.IframeRelayTransport.iframeLoadHandler_);
<a name="line355"></a>    }
<a name="line356"></a>  }
<a name="line357"></a>
<a name="line358"></a>  var style = ifr.style;
<a name="line359"></a>  style.visibility = &#39;hidden&#39;;
<a name="line360"></a>  style.width = ifr.style.height = &#39;0px&#39;;
<a name="line361"></a>  style.position = &#39;absolute&#39;;
<a name="line362"></a>
<a name="line363"></a>  var url = this.peerRelayUri_;
<a name="line364"></a>  url += &#39;#&#39; + this.channel_.name;
<a name="line365"></a>  if (this.peerIframeId_) {
<a name="line366"></a>    url += &#39;,&#39; + this.peerIframeId_;
<a name="line367"></a>  }
<a name="line368"></a>  url += &#39;|&#39; + service;
<a name="line369"></a>  if (opt_fragmentIdStr) {
<a name="line370"></a>    url += &#39;|&#39; + opt_fragmentIdStr;
<a name="line371"></a>  }
<a name="line372"></a>  url += &#39;:&#39; + encodedPayload;
<a name="line373"></a>
<a name="line374"></a>  ifr.src = url;
<a name="line375"></a>
<a name="line376"></a>  this.getWindow().document.body.appendChild(ifr);
<a name="line377"></a>
<a name="line378"></a>  goog.log.log(goog.net.xpc.logger, goog.log.Level.FINEST, &#39;msg sent: &#39; + url);
<a name="line379"></a>};
<a name="line380"></a>
<a name="line381"></a>
<a name="line382"></a>/**
<a name="line383"></a> * The iframe load handler. Gets called as method on the iframe element.
<a name="line384"></a> * @private
<a name="line385"></a> * @this Element
<a name="line386"></a> */
<a name="line387"></a>goog.net.xpc.IframeRelayTransport.iframeLoadHandler_ = function() {
<a name="line388"></a>  goog.log.log(goog.net.xpc.logger, goog.log.Level.FINEST, &#39;iframe-load&#39;);
<a name="line389"></a>  goog.dom.removeNode(this);
<a name="line390"></a>  this.xpcOnload = null;
<a name="line391"></a>};
<a name="line392"></a>
<a name="line393"></a>
<a name="line394"></a>/** @override */
<a name="line395"></a>goog.net.xpc.IframeRelayTransport.prototype.disposeInternal = function() {
<a name="line396"></a>  goog.net.xpc.IframeRelayTransport.base(this, &#39;disposeInternal&#39;);
<a name="line397"></a>  if (goog.userAgent.WEBKIT) {
<a name="line398"></a>    goog.net.xpc.IframeRelayTransport.cleanup_(0);
<a name="line399"></a>  }
<a name="line400"></a>};
</pre>


</body>
</html>
